package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退款申请对象 shop_refund_apply
 * 
 * @author Alan Zhang
 * @date 2021-10-02
 */
public class ShopRefundApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退款申请id */
    private Long id;

    /** 用户Id */
    @Excel(name = "用户Id")
    private Long userId;

    /** 订单明细Id */
    @Excel(name = "订单明细Id")
    private Long orderItemId;

    /** 订单Id */
    @Excel(name = "订单Id")
    private Long orderId;

    /** 退款类型 1、收到商品破损; 2、商品错发、漏发 ; 3、收到商品与描述不符 ; 4、其他 说明 ; */
    @Excel(name = "退款类型 1、收到商品破损; 2、商品错发、漏发 ; 3、收到商品与描述不符 ; 4、其他 说明 ;")
    private Integer type;

    /** 退款原因 */
    @Excel(name = "退款原因")
    private String reason;

    /** 图片 */
    @Excel(name = "图片")
    private String imgUrl;

    /** 审核状态：1 同意 2 拒绝 */
    @Excel(name = "审核状态：1 同意 2 拒绝")
    private Integer auditStatus;

    /** 审核说明 */
    @Excel(name = "审核说明")
    private String auditReason;

    /** 审核者 */
    @Excel(name = "审核者")
    private String auditBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderItemId(Long orderItemId) 
    {
        this.orderItemId = orderItemId;
    }

    public Long getOrderItemId() 
    {
        return orderItemId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setAuditStatus(Integer auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public Integer getAuditStatus() 
    {
        return auditStatus;
    }
    public void setAuditReason(String auditReason) 
    {
        this.auditReason = auditReason;
    }

    public String getAuditReason() 
    {
        return auditReason;
    }
    public void setAuditBy(String auditBy) 
    {
        this.auditBy = auditBy;
    }

    public String getAuditBy() 
    {
        return auditBy;
    }
    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderItemId", getOrderItemId())
            .append("orderId", getOrderId())
            .append("type", getType())
            .append("reason", getReason())
            .append("imgUrl", getImgUrl())
            .append("auditStatus", getAuditStatus())
            .append("auditReason", getAuditReason())
            .append("auditBy", getAuditBy())
            .append("auditTime", getAuditTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
